#pragma once
#ifndef STRING_UTIL_H
#define STRING_UTIL_H


#ifdef _UNICODE
    #include <string>
    #include <wstring>
    #define mstring std::wstring


/*
    mstring UtfToStr(const unsigned char* str);

    std::wstring toWideString(const std::string& str);
    std::wstring toWideString(const char* pStr , int len);
    std::string toNarrowString(const std::wstring& str);
    std::string toNarrowString(const wchar_t* pStr , int len);
*/

#else
    #include <string>
    #define mstring std::string
    mstring UtfToStr(const unsigned char* str);
#endif


mstring LoadResourceString(UINT uID);


DWORD Hex2DWORD(const char* pcstr);


#endif
